package com.webservice;

import backendBeans.MainSiteBean;
import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;

/**
 *
 * @author Sawior
 */
@ManagedBean
@SessionScoped
public class MainSite {
    @EJB
    private MainSiteBean mainBean;
    private String welcomeText;

    public MainSite() {
        this.welcomeText = "";
    }

    public String getWelcomeText() {
        welcomeText = mainBean.getWelcomeMsg();
        return welcomeText;
    }

    public void setWelcomeText(String welcomeText) {
        this.welcomeText = welcomeText;
    }
}
